#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""模板过滤器"""

from django import template

register = template.Library()


@register.filter(name='dfor')
def dfor(index, list):
    return list[index]
